<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:i="http://www.springframework.org/schema/integration"
    xmlns:twitter="http://www.springframework.org/schema/integration/twitter"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:file="http://www.springframework.org/schema/integration/file"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/integration
            http://www.springframework.org/schema/integration/spring-integration.xsd
            http://www.springframework.org/schema/integration/twitter
            http://www.springframework.org/schema/integration/twitter/spring-integration-twitter.xsd
            http://www.springframework.org/schema/integration/file
            http://www.springframework.org/schema/integration/file/spring-integration-file.xsd">

   <i:gateway id="twitterGateway"
        default-request-channel="actionChannel"
        service-interface="org.encuestame.core.integration.gateway.TwitterGateway" />

   <i:gateway id="emailGateway" default-request-channel="actionChannel"
        service-interface="org.encuestame.core.integration.gateway.EmailGateway" />

    <i:channel id="actionChannel">
        <i:queue capacity="6000"/>
    </i:channel>

    <i:bridge input-channel="actionChannel" output-channel="twitterChannel" />

    <i:channel id="errorChannel">
         <i:queue capacity="500"/>
     </i:channel>

     <!--    <import resource="classpath:encuestame-mail-sender.xml" />-->
   <!-- <import resource="TwitterSendUpdates-context.xml" />-->

</beans>
